showrendernode: Plug GOptionContext memory leak
authorTimm Bäder <mail@baedert.org>
Sat, 10 Oct 2020 17:02:43 +0000 (19:02 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 14 Oct 2020 19:06:12 +0000 (15:06 -0400)
tests/showrendernode.c

index 25e9960251ec656703f503d7e801c5622c3c7941..4f41f0c4f9b2830a0390fd2fe459761c3392db7d 100644 (file)
@@ -152,6 +152,9 @@ main (int argc, char **argv)
       return 1;
     }
 
+  g_option_context_free (option_context);
+  option_context = NULL;
+
   g_message ("Compare: %d, write to filename: %s", compare_node, write_to_filename);
 
   gtk_init ();